/*
 * Copyright 2011 Vlad Goldman.  All rights reserved.
  
   This file is part of GooOutSync - Google Outlook Sync application
  
    Project page: http://goooutsync.googlecode.com

    GooOutSync is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    GooOutSync is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with GooOutSync.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.vgold.goooutsync;

import java.util.TreeMap;

import com.vgold.goooutsync.AContact.Fields;

public class OutlookContactsMapping {
	static TreeMap<Fields, String> mapping;

	public OutlookContactsMapping() {
		mapping = new TreeMap<Fields, String>();
		mapping.put(Fields.TITLE, "Subject");
		mapping.put(Fields.FIRST, "FirstName");
		mapping.put(Fields.MIDDLE, "MiddleName");
		mapping.put(Fields.LAST, "LastName");
		mapping.put(Fields.NICKNAME, "NickName");
		mapping.put(Fields.BUSINESS_PHONE, "BusinessTelephoneNumber");
		mapping.put(Fields.BUSINESS_PHONE2, "Business2TelephoneNumber");
		mapping.put(Fields.MOBILE_PHONE, "MobileTelephoneNumber");
		mapping.put(Fields.MOBILE_PHONE2, "PagerNumber");
		mapping.put(Fields.HOME_PHONE, "HomeTelephoneNumber");
		mapping.put(Fields.HOME_PHONE2, "Home2TelephoneNumber");
		mapping.put(Fields.OTHER_PHONE, "OtherTelephoneNumber");
		mapping.put(Fields.EMAIL1, "Email1Address");
		mapping.put(Fields.EMAIL2, "Email2Address");
		mapping.put(Fields.EMAIL3, "Email3Address");
		mapping.put(Fields.COMPANY, "CompanyName");
		mapping.put(Fields.BUSINESS_ADDR, "BusinessAddress");
		mapping.put(Fields.HOME_ADDR, "HomeAddress");
		mapping.put(Fields.PRIMARY_ADDR_IND, "SelectedMailingAddress");
		mapping.put(Fields.BIRTHDAY, "Birthday");
		mapping.put(Fields.OUTID, "EntryID");
		mapping.put(Fields.GOOID, "User1");
		mapping.put(Fields.LASTMODIFIED, "LastModificationTime");
		mapping.put(Fields.NOTES, "Body");
		// TODO Auto-generated constructor stub
	}

	public String get(Fields field) {
		return (mapping.get(field));
	}

	public static OutlookContactsMapping getMapping() {
		return (new OutlookContactsMapping());
	}
}
